/******************************************************************************
 * Product: Adempiere ERP & CRM Smart Business Solution                       *
 * Copyright (C) 1999-2007 ComPiere, Inc. All Rights Reserved.                *
 * This program is free software, you can redistribute it and/or modify it    *
 * under the terms version 2 of the GNU General Public License as published   *
 * by the Free Software Foundation. This program is distributed in the hope   *
 * that it will be useful, but WITHOUT ANY WARRANTY, without even the implied *
 * warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.           *
 * See the GNU General Public License for more details.                       *
 * You should have received a copy of the GNU General Public License along    *
 * with this program, if not, write to the Free Software Foundation, Inc.,    *
 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.                     *
 * For the text or an alternative of this public license, you may reach us    *
 * ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA        *
 * or via info@compiere.org or http://www.compiere.org/license.html           *
 *****************************************************************************/
/** Generated Model - DO NOT CHANGE */
package org.compiere.model;

import java.math.BigDecimal;
import java.sql.ResultSet;
import java.sql.Timestamp;
import java.util.Properties;
import org.compiere.util.Env;
import org.compiere.util.KeyNamePair;

/** Generated Model for CMS_Contract
 *  @author Adempiere (generated) 
 *  @version Release 3.7.0LTS - $Id$ */
public class X_CMS_Contract extends PO implements I_CMS_Contract, I_Persistent 
{

	/**
	 *
	 */
	private static final long serialVersionUID = 20130726L;

    /** the default Constructor */
    public X_CMS_Contract(Properties ctx)
    { 
      super (ctx, null, null);
    } 

    /** Standard Constructor */
    public X_CMS_Contract (Properties ctx, int CMS_Contract_ID, String trxName)
    {
      super (ctx, CMS_Contract_ID, trxName);
      /** if (CMS_Contract_ID == 0)
        {
			setC_BPartner_ID (0);
			setCMS_Contract_ID (0);
			setcms_contractstype_ID (0);
			setDescription (null);
			setResponisbleEmployee_ID (0);
        } */
    }

    /** Load Constructor */
    public X_CMS_Contract (Properties ctx, ResultSet rs, String trxName)
    {
      super (ctx, rs, trxName);
    }

    /** AccessLevel
      * @return 3 - Client - Org 
      */
    protected int get_AccessLevel()
    {
      return accessLevel.intValue();
    }

    /** Load Meta Data */
    protected POInfo initPO (Properties ctx)
    {
      POInfo poi = POInfo.getPOInfo (ctx, Table_ID, get_TrxName());
      return poi;
    }

    public String toString()
    {
      StringBuffer sb = new StringBuffer ("X_CMS_Contract[")
        .append(get_ID()).append("]");
      return sb.toString();
    }

	/** Set Contract Expiration Date.
		@param A_Expired_Date Contract Expiration Date	  */
	public void setA_Expired_Date (Timestamp A_Expired_Date)
	{
		set_Value (COLUMNNAME_A_Expired_Date, A_Expired_Date);
	}

	/** Get Contract Expiration Date.
		@return Contract Expiration Date	  */
	public Timestamp getA_Expired_Date () 
	{
		return (Timestamp)get_Value(COLUMNNAME_A_Expired_Date);
	}

	public org.compiere.model.I_AD_User getAD_User() throws RuntimeException
    {
		return (org.compiere.model.I_AD_User)MTable.get(getCtx(), org.compiere.model.I_AD_User.Table_Name)
			.getPO(getAD_User_ID(), get_TrxName());	}

	/** Set Usuario.
		@param AD_User_ID 
		User within the system - Internal or Business Partner Contact
	  */
	public void setAD_User_ID (int AD_User_ID)
	{
		if (AD_User_ID < 1) 
			set_Value (COLUMNNAME_AD_User_ID, null);
		else 
			set_Value (COLUMNNAME_AD_User_ID, Integer.valueOf(AD_User_ID));
	}

	/** Get Usuario.
		@return User within the system - Internal or Business Partner Contact
	  */
	public int getAD_User_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_AD_User_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set amountwithouttax.
		@param amountwithouttax 
		Сумма без налога
	  */
	public void setamountwithouttax (BigDecimal amountwithouttax)
	{
		set_Value (COLUMNNAME_amountwithouttax, amountwithouttax);
	}

	/** Get amountwithouttax.
		@return Сумма без налога
	  */
	public BigDecimal getamountwithouttax () 
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_amountwithouttax);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set BeginningDateExecution.
		@param BeginningDateExecution 
		Дата начала исполнения
	  */
	public void setBeginningDateExecution (Timestamp BeginningDateExecution)
	{
		set_Value (COLUMNNAME_BeginningDateExecution, BeginningDateExecution);
	}

	/** Get BeginningDateExecution.
		@return Дата начала исполнения
	  */
	public Timestamp getBeginningDateExecution () 
	{
		return (Timestamp)get_Value(COLUMNNAME_BeginningDateExecution);
	}

	public org.compiere.model.I_C_BPartner getC_BPartner() throws RuntimeException
    {
		return (org.compiere.model.I_C_BPartner)MTable.get(getCtx(), org.compiere.model.I_C_BPartner.Table_Name)
			.getPO(getC_BPartner_ID(), get_TrxName());	}

	/** Set Business Partner .
		@param C_BPartner_ID 
		Identifies a Business Partner
	  */
	public void setC_BPartner_ID (int C_BPartner_ID)
	{
		if (C_BPartner_ID < 1) 
			set_Value (COLUMNNAME_C_BPartner_ID, null);
		else 
			set_Value (COLUMNNAME_C_BPartner_ID, Integer.valueOf(C_BPartner_ID));
	}

	/** Get Business Partner .
		@return Identifies a Business Partner
	  */
	public int getC_BPartner_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_C_BPartner_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_C_Currency getC_Currency() throws RuntimeException
    {
		return (org.compiere.model.I_C_Currency)MTable.get(getCtx(), org.compiere.model.I_C_Currency.Table_Name)
			.getPO(getC_Currency_ID(), get_TrxName());	}

	/** Set Currency.
		@param C_Currency_ID 
		The Currency for this record
	  */
	public void setC_Currency_ID (int C_Currency_ID)
	{
		if (C_Currency_ID < 1) 
			set_Value (COLUMNNAME_C_Currency_ID, null);
		else 
			set_Value (COLUMNNAME_C_Currency_ID, Integer.valueOf(C_Currency_ID));
	}

	/** Get Currency.
		@return The Currency for this record
	  */
	public int getC_Currency_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_C_Currency_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_C_DocType getC_DocType() throws RuntimeException
    {
		return (org.compiere.model.I_C_DocType)MTable.get(getCtx(), org.compiere.model.I_C_DocType.Table_Name)
			.getPO(getC_DocType_ID(), get_TrxName());	}

	/** Set Document Type.
		@param C_DocType_ID 
		Document type or rules
	  */
	public void setC_DocType_ID (int C_DocType_ID)
	{
		if (C_DocType_ID < 0) 
			set_Value (COLUMNNAME_C_DocType_ID, null);
		else 
			set_Value (COLUMNNAME_C_DocType_ID, Integer.valueOf(C_DocType_ID));
	}

	/** Get Document Type.
		@return Document type or rules
	  */
	public int getC_DocType_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_C_DocType_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_C_Project getC_Project() throws RuntimeException
    {
		return (org.compiere.model.I_C_Project)MTable.get(getCtx(), org.compiere.model.I_C_Project.Table_Name)
			.getPO(getC_Project_ID(), get_TrxName());	}

	/** Set Project.
		@param C_Project_ID 
		Financial Project
	  */
	public void setC_Project_ID (int C_Project_ID)
	{
		if (C_Project_ID < 1) 
			set_Value (COLUMNNAME_C_Project_ID, null);
		else 
			set_Value (COLUMNNAME_C_Project_ID, Integer.valueOf(C_Project_ID));
	}

	/** Get Project.
		@return Financial Project
	  */
	public int getC_Project_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_C_Project_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.compiere.model.I_C_Tax getC_Tax() throws RuntimeException
    {
		return (org.compiere.model.I_C_Tax)MTable.get(getCtx(), org.compiere.model.I_C_Tax.Table_Name)
			.getPO(getC_Tax_ID(), get_TrxName());	}

	/** Set Tax.
		@param C_Tax_ID 
		Tax identifier
	  */
	public void setC_Tax_ID (int C_Tax_ID)
	{
		if (C_Tax_ID < 1) 
			set_Value (COLUMNNAME_C_Tax_ID, null);
		else 
			set_Value (COLUMNNAME_C_Tax_ID, Integer.valueOf(C_Tax_ID));
	}

	/** Get Tax.
		@return Tax identifier
	  */
	public int getC_Tax_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_C_Tax_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public I_cms_capitalizationtype getcms_capitalizationtype() throws RuntimeException
    {
		return (I_cms_capitalizationtype)MTable.get(getCtx(), I_cms_capitalizationtype.Table_Name)
			.getPO(getcms_capitalizationtype_ID(), get_TrxName());	}

	/** Set cms_capitalizationtype.
		@param cms_capitalizationtype_ID cms_capitalizationtype	  */
	public void setcms_capitalizationtype_ID (int cms_capitalizationtype_ID)
	{
		if (cms_capitalizationtype_ID < 1) 
			set_Value (COLUMNNAME_cms_capitalizationtype_ID, null);
		else 
			set_Value (COLUMNNAME_cms_capitalizationtype_ID, Integer.valueOf(cms_capitalizationtype_ID));
	}

	/** Get cms_capitalizationtype.
		@return cms_capitalizationtype	  */
	public int getcms_capitalizationtype_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_cms_capitalizationtype_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Contract Number.
		@param CMS_Contract_ContractNum 
		Номер контракта
	  */
	public void setCMS_Contract_ContractNum (String CMS_Contract_ContractNum)
	{
		set_Value (COLUMNNAME_CMS_Contract_ContractNum, CMS_Contract_ContractNum);
	}

	/** Get Contract Number.
		@return Номер контракта
	  */
	public String getCMS_Contract_ContractNum () 
	{
		return (String)get_Value(COLUMNNAME_CMS_Contract_ContractNum);
	}

    /** Get Record ID/ColumnName
        @return ID/ColumnName pair
      */
    public KeyNamePair getKeyNamePair() 
    {
        return new KeyNamePair(get_ID(), getCMS_Contract_ContractNum());
    }

	/** Set Contract Number BP.
		@param CMS_Contract_ContractNumBP 
		Номер контракта
	  */
	public void setCMS_Contract_ContractNumBP (String CMS_Contract_ContractNumBP)
	{
		set_Value (COLUMNNAME_CMS_Contract_ContractNumBP, CMS_Contract_ContractNumBP);
	}

	/** Get Contract Number BP.
		@return Номер контракта
	  */
	public String getCMS_Contract_ContractNumBP () 
	{
		return (String)get_Value(COLUMNNAME_CMS_Contract_ContractNumBP);
	}

	/** Set Contract Creation Date.
		@param CMS_Contract_CreatDate 
		Дата создания контракта
	  */
	public void setCMS_Contract_CreatDate (Timestamp CMS_Contract_CreatDate)
	{
		set_Value (COLUMNNAME_CMS_Contract_CreatDate, CMS_Contract_CreatDate);
	}

	/** Get Contract Creation Date.
		@return Дата создания контракта
	  */
	public Timestamp getCMS_Contract_CreatDate () 
	{
		return (Timestamp)get_Value(COLUMNNAME_CMS_Contract_CreatDate);
	}

	/** Set Contract.
		@param CMS_Contract_ID 
		Номер контракта (CMS)
	  */
	public void setCMS_Contract_ID (int CMS_Contract_ID)
	{
		if (CMS_Contract_ID < 1) 
			set_ValueNoCheck (COLUMNNAME_CMS_Contract_ID, null);
		else 
			set_ValueNoCheck (COLUMNNAME_CMS_Contract_ID, Integer.valueOf(CMS_Contract_ID));
	}

	/** Get Contract.
		@return Номер контракта (CMS)
	  */
	public int getCMS_Contract_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_CMS_Contract_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public I_CMS_Contract getCMS_Contract_Parent() throws RuntimeException
    {
		return (I_CMS_Contract)MTable.get(getCtx(), I_CMS_Contract.Table_Name)
			.getPO(getCMS_Contract_Parent_ID(), get_TrxName());	}

	/** Set CMS_Contract_Parent_ID.
		@param CMS_Contract_Parent_ID 
		Договор (Управление договорами)
	  */
	public void setCMS_Contract_Parent_ID (int CMS_Contract_Parent_ID)
	{
		if (CMS_Contract_Parent_ID < 1) 
			set_ValueNoCheck (COLUMNNAME_CMS_Contract_Parent_ID, null);
		else 
			set_ValueNoCheck (COLUMNNAME_CMS_Contract_Parent_ID, Integer.valueOf(CMS_Contract_Parent_ID));
	}

	/** Get CMS_Contract_Parent_ID.
		@return Договор (Управление договорами)
	  */
	public int getCMS_Contract_Parent_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_CMS_Contract_Parent_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public I_cms_contractstype getcms_contractstype() throws RuntimeException
    {
		return (I_cms_contractstype)MTable.get(getCtx(), I_cms_contractstype.Table_Name)
			.getPO(getcms_contractstype_ID(), get_TrxName());	}

	/** Set cms_contractstype.
		@param cms_contractstype_ID 
		Тип контракта
	  */
	public void setcms_contractstype_ID (int cms_contractstype_ID)
	{
		if (cms_contractstype_ID < 1) 
			set_Value (COLUMNNAME_cms_contractstype_ID, null);
		else 
			set_Value (COLUMNNAME_cms_contractstype_ID, Integer.valueOf(cms_contractstype_ID));
	}

	/** Get cms_contractstype.
		@return Тип контракта
	  */
	public int getcms_contractstype_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_cms_contractstype_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public I_cms_deliveriestype getcms_deliveriestype() throws RuntimeException
    {
		return (I_cms_deliveriestype)MTable.get(getCtx(), I_cms_deliveriestype.Table_Name)
			.getPO(getcms_deliveriestype_ID(), get_TrxName());	}

	/** Set cms_deliveriestype.
		@param cms_deliveriestype_ID 
		Вид доставки
	  */
	public void setcms_deliveriestype_ID (int cms_deliveriestype_ID)
	{
		if (cms_deliveriestype_ID < 1) 
			set_Value (COLUMNNAME_cms_deliveriestype_ID, null);
		else 
			set_Value (COLUMNNAME_cms_deliveriestype_ID, Integer.valueOf(cms_deliveriestype_ID));
	}

	/** Get cms_deliveriestype.
		@return Вид доставки
	  */
	public int getcms_deliveriestype_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_cms_deliveriestype_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public I_cms_GWStype getcms_GWStype() throws RuntimeException
    {
		return (I_cms_GWStype)MTable.get(getCtx(), I_cms_GWStype.Table_Name)
			.getPO(getcms_GWStype_ID(), get_TrxName());	}

	/** Set cms_GWStype.
		@param cms_GWStype_ID cms_GWStype	  */
	public void setcms_GWStype_ID (int cms_GWStype_ID)
	{
		if (cms_GWStype_ID < 1) 
			set_Value (COLUMNNAME_cms_GWStype_ID, null);
		else 
			set_Value (COLUMNNAME_cms_GWStype_ID, Integer.valueOf(cms_GWStype_ID));
	}

	/** Get cms_GWStype.
		@return cms_GWStype	  */
	public int getcms_GWStype_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_cms_GWStype_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public I_cms_incotermstype getcms_incotermstype() throws RuntimeException
    {
		return (I_cms_incotermstype)MTable.get(getCtx(), I_cms_incotermstype.Table_Name)
			.getPO(getcms_incotermstype_ID(), get_TrxName());	}

	/** Set cms_incotermstype.
		@param cms_incotermstype_ID 
		Вид инконермс
	  */
	public void setcms_incotermstype_ID (int cms_incotermstype_ID)
	{
		if (cms_incotermstype_ID < 1) 
			set_Value (COLUMNNAME_cms_incotermstype_ID, null);
		else 
			set_Value (COLUMNNAME_cms_incotermstype_ID, Integer.valueOf(cms_incotermstype_ID));
	}

	/** Get cms_incotermstype.
		@return Вид инконермс
	  */
	public int getcms_incotermstype_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_cms_incotermstype_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public I_cms_paymentstype getcms_paymentstype() throws RuntimeException
    {
		return (I_cms_paymentstype)MTable.get(getCtx(), I_cms_paymentstype.Table_Name)
			.getPO(getcms_paymentstype_ID(), get_TrxName());	}

	/** Set cms_paymentstype.
		@param cms_paymentstype_ID 
		Вид оплаты
	  */
	public void setcms_paymentstype_ID (int cms_paymentstype_ID)
	{
		if (cms_paymentstype_ID < 1) 
			set_Value (COLUMNNAME_cms_paymentstype_ID, null);
		else 
			set_Value (COLUMNNAME_cms_paymentstype_ID, Integer.valueOf(cms_paymentstype_ID));
	}

	/** Get cms_paymentstype.
		@return Вид оплаты
	  */
	public int getcms_paymentstype_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_cms_paymentstype_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public I_cms_paymenycompensationtype getcms_paymenycompensationtype() throws RuntimeException
    {
		return (I_cms_paymenycompensationtype)MTable.get(getCtx(), I_cms_paymenycompensationtype.Table_Name)
			.getPO(getcms_paymenycompensationtype_ID(), get_TrxName());	}

	/** Set cms_paymenycompensationtype.
		@param cms_paymenycompensationtype_ID cms_paymenycompensationtype	  */
	public void setcms_paymenycompensationtype_ID (int cms_paymenycompensationtype_ID)
	{
		if (cms_paymenycompensationtype_ID < 1) 
			set_Value (COLUMNNAME_cms_paymenycompensationtype_ID, null);
		else 
			set_Value (COLUMNNAME_cms_paymenycompensationtype_ID, Integer.valueOf(cms_paymenycompensationtype_ID));
	}

	/** Get cms_paymenycompensationtype.
		@return cms_paymenycompensationtype	  */
	public int getcms_paymenycompensationtype_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_cms_paymenycompensationtype_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public I_cms_prepaymenttype getcms_prepaymenttype() throws RuntimeException
    {
		return (I_cms_prepaymenttype)MTable.get(getCtx(), I_cms_prepaymenttype.Table_Name)
			.getPO(getcms_prepaymenttype_ID(), get_TrxName());	}

	/** Set cms_prepaymenttype.
		@param cms_prepaymenttype_ID cms_prepaymenttype	  */
	public void setcms_prepaymenttype_ID (int cms_prepaymenttype_ID)
	{
		if (cms_prepaymenttype_ID < 1) 
			set_Value (COLUMNNAME_cms_prepaymenttype_ID, null);
		else 
			set_Value (COLUMNNAME_cms_prepaymenttype_ID, Integer.valueOf(cms_prepaymenttype_ID));
	}

	/** Get cms_prepaymenttype.
		@return cms_prepaymenttype	  */
	public int getcms_prepaymenttype_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_cms_prepaymenttype_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public I_cms_procurementstype getcms_procurementstype() throws RuntimeException
    {
		return (I_cms_procurementstype)MTable.get(getCtx(), I_cms_procurementstype.Table_Name)
			.getPO(getcms_procurementstype_ID(), get_TrxName());	}

	/** Set cms_procurementstype.
		@param cms_procurementstype_ID 
		Способ закупки
	  */
	public void setcms_procurementstype_ID (int cms_procurementstype_ID)
	{
		if (cms_procurementstype_ID < 1) 
			set_Value (COLUMNNAME_cms_procurementstype_ID, null);
		else 
			set_Value (COLUMNNAME_cms_procurementstype_ID, Integer.valueOf(cms_procurementstype_ID));
	}

	/** Get cms_procurementstype.
		@return Способ закупки
	  */
	public int getcms_procurementstype_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_cms_procurementstype_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public I_cms_statusestype getcms_statusestype() throws RuntimeException
    {
		return (I_cms_statusestype)MTable.get(getCtx(), I_cms_statusestype.Table_Name)
			.getPO(getcms_statusestype_ID(), get_TrxName());	}

	/** Set cms_statusestype.
		@param cms_statusestype_ID 
		Статус
	  */
	public void setcms_statusestype_ID (int cms_statusestype_ID)
	{
		if (cms_statusestype_ID < 1) 
			set_Value (COLUMNNAME_cms_statusestype_ID, null);
		else 
			set_Value (COLUMNNAME_cms_statusestype_ID, Integer.valueOf(cms_statusestype_ID));
	}

	/** Get cms_statusestype.
		@return Статус
	  */
	public int getcms_statusestype_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_cms_statusestype_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public I_cms_withdrawal getcms_withdrawal() throws RuntimeException
    {
		return (I_cms_withdrawal)MTable.get(getCtx(), I_cms_withdrawal.Table_Name)
			.getPO(getcms_withdrawal_ID(), get_TrxName());	}

	/** Set cms_withdrawal.
		@param cms_withdrawal_ID cms_withdrawal	  */
	public void setcms_withdrawal_ID (int cms_withdrawal_ID)
	{
		if (cms_withdrawal_ID < 1) 
			set_Value (COLUMNNAME_cms_withdrawal_ID, null);
		else 
			set_Value (COLUMNNAME_cms_withdrawal_ID, Integer.valueOf(cms_withdrawal_ID));
	}

	/** Get cms_withdrawal.
		@return cms_withdrawal	  */
	public int getcms_withdrawal_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_cms_withdrawal_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set ContractSummary.
		@param ContractSummary 
		Сумма договора
	  */
	public void setContractSummary (BigDecimal ContractSummary)
	{
		set_Value (COLUMNNAME_ContractSummary, ContractSummary);
	}

	/** Get ContractSummary.
		@return Сумма договора
	  */
	public BigDecimal getContractSummary () 
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_ContractSummary);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Contragent.
		@param Contragent 
		Contragent
	  */
	public void setContragent (String Contragent)
	{
		set_Value (COLUMNNAME_Contragent, Contragent);
	}

	/** Get Contragent.
		@return Contragent
	  */
	public String getContragent () 
	{
		return (String)get_Value(COLUMNNAME_Contragent);
	}

	/** Set contragent_contacts.
		@param contragent_contacts 
		Контакты контрагента
	  */
	public void setcontragent_contacts (String contragent_contacts)
	{
		set_Value (COLUMNNAME_contragent_contacts, contragent_contacts);
	}

	/** Get contragent_contacts.
		@return Контакты контрагента
	  */
	public String getcontragent_contacts () 
	{
		return (String)get_Value(COLUMNNAME_contragent_contacts);
	}

	/** Set CreatedDate.
		@param CreatedDate 
		Дата создания
	  */
	public void setCreatedDate (Timestamp CreatedDate)
	{
		set_Value (COLUMNNAME_CreatedDate, CreatedDate);
	}

	/** Get CreatedDate.
		@return Дата создания
	  */
	public Timestamp getCreatedDate () 
	{
		return (Timestamp)get_Value(COLUMNNAME_CreatedDate);
	}

	/** Set Date From.
		@param DateFrom 
		Starting date for a range
	  */
	public void setDateFrom (Timestamp DateFrom)
	{
		set_Value (COLUMNNAME_DateFrom, DateFrom);
	}

	/** Get Date From.
		@return Starting date for a range
	  */
	public Timestamp getDateFrom () 
	{
		return (Timestamp)get_Value(COLUMNNAME_DateFrom);
	}

	/** Set deliveryType.
		@param deliveryType 
		Способ поставки
	  */
	public void setdeliveryType (String deliveryType)
	{
		set_Value (COLUMNNAME_deliveryType, deliveryType);
	}

	/** Get deliveryType.
		@return Способ поставки
	  */
	public String getdeliveryType () 
	{
		return (String)get_Value(COLUMNNAME_deliveryType);
	}

	/** Set Deposits.
		@param Deposits Deposits	  */
	public void setDeposits (boolean Deposits)
	{
		set_Value (COLUMNNAME_Deposits, Boolean.valueOf(Deposits));
	}

	/** Get Deposits.
		@return Deposits	  */
	public boolean isDeposits () 
	{
		Object oo = get_Value(COLUMNNAME_Deposits);
		if (oo != null) 
		{
			 if (oo instanceof Boolean) 
				 return ((Boolean)oo).booleanValue(); 
			return "Y".equals(oo);
		}
		return false;
	}

	/** Set Description.
		@param Description 
		Optional short description of the record
	  */
	public void setDescription (String Description)
	{
		set_Value (COLUMNNAME_Description, Description);
	}

	/** Get Description.
		@return Optional short description of the record
	  */
	public String getDescription () 
	{
		return (String)get_Value(COLUMNNAME_Description);
	}

	/** DocAction AD_Reference_ID=1000111 */
	public static final int DOCACTION_AD_Reference_ID=1000111;
	/** <None> = -- */
	public static final String DOCACTION_None = "--";
	/** Approve = AP */
	public static final String DOCACTION_Approve = "AP";
	/** Completed = CO */
	public static final String DOCACTION_Completed = "CO";
	/** In Progress = IN */
	public static final String DOCACTION_InProgress = "IN";
	/** Post = PO */
	public static final String DOCACTION_Post = "PO";
	/** Prepare = PR */
	public static final String DOCACTION_Prepare = "PR";
	/** Reverse - Accrual = RA */
	public static final String DOCACTION_Reverse_Accrual = "RA";
	/** Reversed = RE */
	public static final String DOCACTION_Reversed = "RE";
	/** Voided = VO */
	public static final String DOCACTION_Voided = "VO";
	/** Wait Complete = WC */
	public static final String DOCACTION_WaitComplete = "WC";
	/** Set Document Action.
		@param DocAction 
		The targeted status of the document
	  */
	public void setDocAction (String DocAction)
	{

		set_Value (COLUMNNAME_DocAction, DocAction);
	}

	/** Get Document Action.
		@return The targeted status of the document
	  */
	public String getDocAction () 
	{
		return (String)get_Value(COLUMNNAME_DocAction);
	}

	/** DocStatus AD_Reference_ID=1000111 */
	public static final int DOCSTATUS_AD_Reference_ID=1000111;
	/** <None> = -- */
	public static final String DOCSTATUS_None = "--";
	/** Approve = AP */
	public static final String DOCSTATUS_Approve = "AP";
	/** Completed = CO */
	public static final String DOCSTATUS_Completed = "CO";
	/** In Progress = IN */
	public static final String DOCSTATUS_InProgress = "IN";
	/** Post = PO */
	public static final String DOCSTATUS_Post = "PO";
	/** Prepare = PR */
	public static final String DOCSTATUS_Prepare = "PR";
	/** Reverse - Accrual = RA */
	public static final String DOCSTATUS_Reverse_Accrual = "RA";
	/** Reversed = RE */
	public static final String DOCSTATUS_Reversed = "RE";
	/** Voided = VO */
	public static final String DOCSTATUS_Voided = "VO";
	/** Wait Complete = WC */
	public static final String DOCSTATUS_WaitComplete = "WC";
	/** Set Document Status.
		@param DocStatus 
		The current status of the document
	  */
	public void setDocStatus (String DocStatus)
	{

		set_Value (COLUMNNAME_DocStatus, DocStatus);
	}

	/** Get Document Status.
		@return The current status of the document
	  */
	public String getDocStatus () 
	{
		return (String)get_Value(COLUMNNAME_DocStatus);
	}

	/** Set Document No.
		@param DocumentNo 
		Document sequence number of the document
	  */
	public void setDocumentNo (String DocumentNo)
	{
		set_Value (COLUMNNAME_DocumentNo, DocumentNo);
	}

	/** Get Document No.
		@return Document sequence number of the document
	  */
	public String getDocumentNo () 
	{
		return (String)get_Value(COLUMNNAME_DocumentNo);
	}

	/** Set EndDateExecution.
		@param EndDateExecution 
		EndDateExecution
	  */
	public void setEndDateExecution (Timestamp EndDateExecution)
	{
		set_Value (COLUMNNAME_EndDateExecution, EndDateExecution);
	}

	/** Get EndDateExecution.
		@return EndDateExecution
	  */
	public Timestamp getEndDateExecution () 
	{
		return (Timestamp)get_Value(COLUMNNAME_EndDateExecution);
	}

	/** Set EstablishSubLimit.
		@param EstablishSubLimit 
		Установленные сублимиты
	  */
	public void setEstablishSubLimit (BigDecimal EstablishSubLimit)
	{
		set_Value (COLUMNNAME_EstablishSubLimit, EstablishSubLimit);
	}

	/** Get EstablishSubLimit.
		@return Установленные сублимиты
	  */
	public BigDecimal getEstablishSubLimit () 
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_EstablishSubLimit);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Comment/Help.
		@param Help 
		Comment or Hint
	  */
	public void setHelp (String Help)
	{
		set_Value (COLUMNNAME_Help, Help);
	}

	/** Get Comment/Help.
		@return Comment or Hint
	  */
	public String getHelp () 
	{
		return (String)get_Value(COLUMNNAME_Help);
	}

	/** Set HR Block.
		@param HR_Block_ID HR Block	  */
	public void setHR_Block_ID (int HR_Block_ID)
	{
		if (HR_Block_ID < 1) 
			set_Value (COLUMNNAME_HR_Block_ID, null);
		else 
			set_Value (COLUMNNAME_HR_Block_ID, Integer.valueOf(HR_Block_ID));
	}

	/** Get HR Block.
		@return HR Block	  */
	public int getHR_Block_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_HR_Block_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	public org.eevolution.model.I_HR_Department getHR_Department() throws RuntimeException
    {
		return (org.eevolution.model.I_HR_Department)MTable.get(getCtx(), org.eevolution.model.I_HR_Department.Table_Name)
			.getPO(getHR_Department_ID(), get_TrxName());	}

	/** Set Payroll Department.
		@param HR_Department_ID Payroll Department	  */
	public void setHR_Department_ID (int HR_Department_ID)
	{
		if (HR_Department_ID < 1) 
			set_Value (COLUMNNAME_HR_Department_ID, null);
		else 
			set_Value (COLUMNNAME_HR_Department_ID, Integer.valueOf(HR_Department_ID));
	}

	/** Get Payroll Department.
		@return Payroll Department	  */
	public int getHR_Department_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_HR_Department_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set isCapitalization.
		@param isCapitalization 
		Капитализация вознаграждения
	  */
	public void setisCapitalization (boolean isCapitalization)
	{
		set_Value (COLUMNNAME_isCapitalization, Boolean.valueOf(isCapitalization));
	}

	/** Get isCapitalization.
		@return Капитализация вознаграждения
	  */
	public boolean isCapitalization () 
	{
		Object oo = get_Value(COLUMNNAME_isCapitalization);
		if (oo != null) 
		{
			 if (oo instanceof Boolean) 
				 return ((Boolean)oo).booleanValue(); 
			return "Y".equals(oo);
		}
		return false;
	}

	/** Set isPartialWithdrawal.
		@param isPartialWithdrawal 
		Частичное изъятие (депозиты)
	  */
	public void setisPartialWithdrawal (boolean isPartialWithdrawal)
	{
		set_Value (COLUMNNAME_isPartialWithdrawal, Boolean.valueOf(isPartialWithdrawal));
	}

	/** Get isPartialWithdrawal.
		@return Частичное изъятие (депозиты)
	  */
	public boolean isPartialWithdrawal () 
	{
		Object oo = get_Value(COLUMNNAME_isPartialWithdrawal);
		if (oo != null) 
		{
			 if (oo instanceof Boolean) 
				 return ((Boolean)oo).booleanValue(); 
			return "Y".equals(oo);
		}
		return false;
	}

	/** Set isSupplement.
		@param isSupplement 
		Дополнение к договору
	  */
	public void setisSupplement (boolean isSupplement)
	{
		set_Value (COLUMNNAME_isSupplement, Boolean.valueOf(isSupplement));
	}

	/** Get isSupplement.
		@return Дополнение к договору
	  */
	public boolean isSupplement () 
	{
		Object oo = get_Value(COLUMNNAME_isSupplement);
		if (oo != null) 
		{
			 if (oo instanceof Boolean) 
				 return ((Boolean)oo).booleanValue(); 
			return "Y".equals(oo);
		}
		return false;
	}

	/** Set MinBalance.
		@param MinBalance 
		Неснижаемый остаток
	  */
	public void setMinBalance (BigDecimal MinBalance)
	{
		set_Value (COLUMNNAME_MinBalance, MinBalance);
	}

	/** Get MinBalance.
		@return Неснижаемый остаток
	  */
	public BigDecimal getMinBalance () 
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_MinBalance);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Payment Term.
		@param PaymentTerm 
		Payment Term
	  */
	public void setPaymentTerm (BigDecimal PaymentTerm)
	{
		set_Value (COLUMNNAME_PaymentTerm, PaymentTerm);
	}

	/** Get Payment Term.
		@return Payment Term
	  */
	public BigDecimal getPaymentTerm () 
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_PaymentTerm);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set PaymentTerms.
		@param PaymentTerms 
		Условия оплаты
	  */
	public void setPaymentTerms (String PaymentTerms)
	{
		set_Value (COLUMNNAME_PaymentTerms, PaymentTerms);
	}

	/** Get PaymentTerms.
		@return Условия оплаты
	  */
	public String getPaymentTerms () 
	{
		return (String)get_Value(COLUMNNAME_PaymentTerms);
	}

	/** Set placementperiod.
		@param placementperiod 
		Срок размещения
	  */
	public void setplacementperiod (int placementperiod)
	{
		set_Value (COLUMNNAME_placementperiod, Integer.valueOf(placementperiod));
	}

	/** Get placementperiod.
		@return Срок размещения
	  */
	public int getplacementperiod () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_placementperiod);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Prepayment.
		@param Prepayment 
		Предоплата
	  */
	public void setPrepayment (BigDecimal Prepayment)
	{
		set_Value (COLUMNNAME_Prepayment, Prepayment);
	}

	/** Get Prepayment.
		@return Предоплата
	  */
	public BigDecimal getPrepayment () 
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_Prepayment);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	/** Set Processed.
		@param Processed 
		The document has been processed
	  */
	public void setProcessed (boolean Processed)
	{
		set_Value (COLUMNNAME_Processed, Boolean.valueOf(Processed));
	}

	/** Get Processed.
		@return The document has been processed
	  */
	public boolean isProcessed () 
	{
		Object oo = get_Value(COLUMNNAME_Processed);
		if (oo != null) 
		{
			 if (oo instanceof Boolean) 
				 return ((Boolean)oo).booleanValue(); 
			return "Y".equals(oo);
		}
		return false;
	}

	/** Set procurementBasis.
		@param procurementBasis procurementBasis	  */
	public void setprocurementBasis (String procurementBasis)
	{
		set_Value (COLUMNNAME_procurementBasis, procurementBasis);
	}

	/** Get procurementBasis.
		@return procurementBasis	  */
	public String getprocurementBasis () 
	{
		return (String)get_Value(COLUMNNAME_procurementBasis);
	}

	/** Set procurementDate.
		@param procurementDate procurementDate	  */
	public void setprocurementDate (Timestamp procurementDate)
	{
		set_Value (COLUMNNAME_procurementDate, procurementDate);
	}

	/** Get procurementDate.
		@return procurementDate	  */
	public Timestamp getprocurementDate () 
	{
		return (Timestamp)get_Value(COLUMNNAME_procurementDate);
	}

	/** Set rateremun.
		@param rateremun 
		Ставка вознаграждения
	  */
	public void setrateremun (BigDecimal rateremun)
	{
		set_Value (COLUMNNAME_rateremun, rateremun);
	}

	/** Get rateremun.
		@return Ставка вознаграждения
	  */
	public BigDecimal getrateremun () 
	{
		BigDecimal bd = (BigDecimal)get_Value(COLUMNNAME_rateremun);
		if (bd == null)
			 return Env.ZERO;
		return bd;
	}

	public org.compiere.model.I_C_BPartner getResponisbleEmployee() throws RuntimeException
    {
		return (org.compiere.model.I_C_BPartner)MTable.get(getCtx(), org.compiere.model.I_C_BPartner.Table_Name)
			.getPO(getResponisbleEmployee_ID(), get_TrxName());	}

	/** Set ResponisbleEmployee_ID.
		@param ResponisbleEmployee_ID 
		ResponisbleEmployee_ID
	  */
	public void setResponisbleEmployee_ID (int ResponisbleEmployee_ID)
	{
		if (ResponisbleEmployee_ID < 1) 
			set_Value (COLUMNNAME_ResponisbleEmployee_ID, null);
		else 
			set_Value (COLUMNNAME_ResponisbleEmployee_ID, Integer.valueOf(ResponisbleEmployee_ID));
	}

	/** Get ResponisbleEmployee_ID.
		@return ResponisbleEmployee_ID
	  */
	public int getResponisbleEmployee_ID () 
	{
		Integer ii = (Integer)get_Value(COLUMNNAME_ResponisbleEmployee_ID);
		if (ii == null)
			 return 0;
		return ii.intValue();
	}

	/** Set Version No.
		@param VersionNo 
		Version Number
	  */
	public void setVersionNo (String VersionNo)
	{
		set_Value (COLUMNNAME_VersionNo, VersionNo);
	}

	/** Get Version No.
		@return Version Number
	  */
	public String getVersionNo () 
	{
		return (String)get_Value(COLUMNNAME_VersionNo);
	}
}